<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.

$dirname = dirname(__FILE__);
if (defined('YII_DEBUG') && YII_DEBUG) {
	$params = "$dirname/params-test.php";
} else {
	$params = "$dirname/params.php";
}

return array(
	'basePath'=>"$dirname/..",
	'name'=>'Haruna Console Application',
	'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.extensions.*',
	),
	// application components
	'components'=>array(
		'db'=>array(
			'connectionString'=>"sqlite:$dirname/../data/haruna.db",
		),
		// uncomment the following to use a MySQL database
		/*
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=testdrive',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
		),
		*/
	),
);